SYSCONF
Section: MINTLIB LIBRARY FUNCTIONS
(3)
Updated: 3 March 1993
Index
Return to Main Contents
NAME
sysconf - query system related limits, values, options
SYNOPSIS
#include <unistd.h>
long sysconf(int name);
DESCRIPTION
The sysconf function provides a method for the application to
determine the current value of a configurable system limit or
option. The value does not change during the lifetime of the
calling process.
The following parameters to sysconf are supported:
Name Meaning Note
_SC_LAST max limit # for sysconf NOT POSIX
_SC_MEMR_MAX memory regions per process NOT POSIX
_SC_ARG_MAX max length of cmdln NOT quite POSIX
_SC_OPEN_MAX max # of open files per process POSIX
_SC_NGROUPS_MAX max # supp gids POSIX
_SC_CHILD_MAX max # processes/user NOT quite POSIX
RETURN VALUES
sysconf returns the current variable value on success.
On failure, it returns -1 and sets errno to indicate the error.
SEE ALSO
pathconf(3),
Sysconf(2)
NOTE
It's a pity this routine does not conform to POSIX; but then,
it's even more a pity that MiNT does not comply...
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUES
-
- SEE ALSO
-
- NOTE
-
This document was created by
man2html,
using the manual pages.
Time: 11:14:57 GMT, June 22, 2025